-- GENERATED SPELL FOR [Amani'shi Berserker] --


function spell0_24374(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(28747,pUnit)
pUnit:RegisterEvent('Sorts_24374', 622, 1)
end

function spell1_24374(pUnit, Event) --@Mighty Blow,n/a--
pUnit:FullCastSpellOnTarget(43673,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24374', 0, 1)
end

function Sorts_24374(pUnit, Event)
local choix_sorts_24374 = math.random(0, 1)
if choix_sorts_24374 == 0 then
pUnit:RegisterEvent('spell0_24374', 1, 1)
end
if choix_sorts_24374 == 1 then
pUnit:RegisterEvent('spell1_24374', 1, 1)
end
end

function mob24374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24374', math.random(1500, 3000), 1)
end

function mob24374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24374, 1, 'mob24374_Action')
RegisterUnitEvent(24374, 2, 'mob24374_Leave')
RegisterUnitEvent(24374, 3, 'mob24374_Kill')
RegisterUnitEvent(24374, 4, 'mob24374_Die')
